﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Doan.Website.Models
{
    public class NewMeta
    {
        [Required]
        public int GroupNewsId { get; set; }

        [Required]
        [StringLength(255, ErrorMessage = "Tên phải có tối thiểu 15 ký tự", MinimumLength = 15)]
        public string Name { get; set; }

        [Required]
        public string Content { get; set; }

        [Required]
        public string Title { get; set; }

        [Required]
        [UIHint("markdowneditor"), AllowHtml]
        public string Detail { get; set; }

        [Required]
        public DateTime Date { get; set; }

    }
}
